<?php

define('MPA_ROOT', dirname(__FILE__));

require MPA_ROOT . '/var/MPA/CNBlogs/Client.php';

$client = new MPA_CNBlogs_Client('X', 'x', 'x');
//$client->debug = TRUE;
var_dump($client->getUserBlogs());
var_dump($client->getResponse());
var_dump($client->getRecentPosts(2));
var_dump($client->getResponse());
var_dump($client->getPost(4628529));
var_dump($client->getResponse());

if ($client->isError()) {
    var_dump($client->getErrorCode());
    var_dump($client->getErrorMessage());
}